<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFconsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fcons', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedInteger("uid",false)->comment("用户id");
            $table->string("pimx",255)->comment("恢复情况");
            $table->string("pime",255)->comment("已改善");
            $table->string("pimo",255)->comment("未改善");
            $table->string("pimd",255)->comment("新增症状");
            $table->string("pimg",255)->comment("病例图片");

            $table->dateTime("created_at")->useCurrent();
            $table->dateTime("updated_at")->nullable()->useCurrent();
            $table->softDeletes();
        });
        DB::statement("ALTER TABLE 'xc_fcons' comment'用户复诊表'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fcons');
    }
}
